package com.touni.designpattern.singletonpattern.enumtype;

/**
 * @ClassName : SingletonEnum
 * @Description : enum形式生成单例
 * @Author : lwq
 * @Date: 2020-10-20 14:33
 */
public enum SingletonEnum {
    INSTANCE;
    private Singleton singleton;
    SingletonEnum(){
        singleton = new Singleton();
    }
    public Singleton getSingleton(){
        return singleton;
    }

}
